]> dgit.raspbian.org Git - ostree.git/commitdiff
ci: Extend cargo fmt check to cover all Rust crates
authorXiaofeng Wang <henrywangxf@me.com>
Tue, 31 Mar 2026 03:30:08 +0000 (11:30 +0800)
committerXiaofeng Wang <henrywangxf@me.com>
Tue, 31 Mar 2026 03:30:08 +0000 (11:30 +0800)
The existing cargo fmt check only covered the ostree workspace package.
Add fmt checks for the standalone test crates (tests/inst,
tests/bootc-integration, tests/xtask) which are separate workspaces.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
.github/workflows/rust.yml

index 0e62cd5b4b7267aab666e0bffa83c22639c7ce3c..1e7688638e2d41682fc88b889ff60d56d33b770c 100644 (file)
@@ -24,7 +24,11 @@ jobs:
       - name: Cache Dependencies
         uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
       - name: cargo fmt (check)
-        run: cargo fmt -p ostree -- --check -l
+        run: |
+          cargo fmt -p ostree -- --check -l
+          for d in tests/inst tests/bootc-integration tests/xtask; do
+            cargo fmt --manifest-path $d/Cargo.toml -- --check -l
+          done
       - name: Build
         run: cargo build --verbose --features=${{ env['CARGO_PROJECT_FEATURES'] }}
       - name: Run tests